﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="BidProductAbandon.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.BidProductAbandon"
    Title="无标题页" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">撤废采购产品</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td align="right">
                    <asp:Label ID="lblGoodsName" runat="server" Text="产品名称："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="lblOutLook" runat="server" Text="规格型号："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtOutLook" runat="server"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="lblMaterial" runat="server" Text="材质："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                </td>
                <td rowspan="4">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblUnit" runat="server" Text="单位："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="lblCompany_TB" runat="server" Text="投标企业："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtCompany_TB" runat="server"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="lblProduceCompany" runat="server" Text="生产企业："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtProduceCompany_SC" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPackUnit" runat="server" Text="包装单位："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtPackUnit" runat="server"></asp:TextBox>
                </td>
                
                <td align="right">
                    <asp:Label ID="lblProject" runat="server" Text="项目："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtProject" runat="server"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="lblAddTime" runat="server" Text="添加时间："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtProcureStartTime" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                        Width="62px"></asp:TextBox>
                    <asp:Label ID="Label3" runat="server" Text="-"></asp:Label>
                    <asp:TextBox ID="txtProcureEndTime" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                        Width="62px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="GoodsID" HeaderText="产品编号" Visible="false" />
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:BoundField DataField="PackUnit" HeaderText="包装单位" />
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
            <asp:BoundField DataField="SortName" HeaderText="产品分类" Visible="false" />
            <asp:BoundField DataField="ProcurePrice" HeaderText="采购限价" DataFormatString="{0:N4}" />
            <asp:BoundField DataField="CompanyName_TB" HeaderText="投标企业" Visible="False" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:BoundField DataField="ProjectName" HeaderText="项目" />
            <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                    <asp:Image runat="server" ID="imgState" ImageUrl='<%# (bool)Eval("IsUsing")?"~/lib/images/ico_yes.gif":"~/lib/images/ico_no.gif" %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="AddTime" HeaderText="添加时间" 
                DataFormatString="{0:yyyy-MM-dd}" />
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwProduceCatalog','addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="checkbox1" id="checkbox1" value='<%#Eval("ProcureCatalogID")%>'
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwProduceCatalog','addTable_chkAll');" />
                </ItemTemplate>
                <HeaderStyle Width="25px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
    </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span> 选择要操作的采购产品，然后点击“撤废产品”或“恢复产品”。</span></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnAbandon" runat="server" Text="撤废产品" OnClick="btnAbandon_Click"
            OnClientClick="if(checkSelectedItems('ctl00_ContentPlaceHolder1_gvwProduceCatalog','请至少选择一种产品')) {return confirm('确定要撤废选中产品吗？')}; return false;"
            CssClass="btn" />
        <hz:HzButton ID="btnRecover" runat="server" Text="恢复产品" OnClick="btnRecover_Click"
            OnClientClick="if(checkSelectedItems('ctl00_ContentPlaceHolder1_gvwProduceCatalog','请至少选择一种产品')) {return confirm('确定要恢复选中产品吗？')}; return false"
            CssClass="btn" />
    </div>
</asp:Content>
